class HotSaleGood
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Attributes::Dynamic
  include Mongoid::Paperclip
  ####关联表
  belongs_to :userinfo ####关联运营商信息
  ####表信息部分
  field :product_id, type: String ######商品id
  field :orderval, type: Integer ######排序字段
  field :isuserinfo, type: Integer ######是否为管理员手动设置  0 不是   1  是

  attr_readonly *fields.keys
end
